<template>
  <div class="title">
    <img class="titleIcon" src="@/assets/images/titleIcon.png" />
    <span>{{ title }}</span>
  </div>
</template>

<script setup lang="ts" name="TitleBar">
defineProps<{ title: string }>();
</script>

<style scoped lang="scss">
.title {
  display: flex;
  align-items: center;
  width: 100%;
  height: 30px;
  font-family: PingFangSC-Semibold;
  font-size: 16px;
  font-weight: 600;
  line-height: 30px;
  color: #ffffff;
  letter-spacing: 0.2px;
  background-image: linear-gradient(270deg, rgb(69 219 209 / 0%) 0%, #21b6a4 100%);
  .titleIcon {
    width: 18px;
    height: 16px;
    padding: 0 10px;
  }
}
</style>
